<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-title" content="志惠科技">
<title>保单详情</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<!-- 添加到桌面快捷方式小图标 -->
<link rel="apple-touch-icon-precomposed" href="#">
<!-- 指定快捷方式标题 -->
<meta name="apple-mobile-web-app-title" content="志惠科技">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/auto_insurance.css">
<script type="text/javascript" src="js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="js/auto_insurance.js" ></script>
</head>
<body class="body_bg">
	<ul class="insurance_scheme_title policy_detail_title tab_title clearfix">
		<li class="current_title">保险责任</li>
		<li>个人信息</li>
	</ul>
	<!--保险责任内容开始-->
	<div class="tab_content">
		<div class="policy_detail_container">
			<h1><em></em>商业险</h1>
			<table>
				<tbody>
					<tr>
						<th>基本险种</th>
						<th>保额</th>
						<th>保费</th>
					</tr>
					<c:if test="${list !=null }">
						<c:forEach items="${list }" var="kind">
							<c:if test="${kind.kindCode != 'BZ' && kind.kindCode != 'N' }">
								<tr>
									<td>${kind.kindName }</td>
									<td>${kind.amount }</td>
									<td>￥${kind.premium }</td>
								</tr>
								<tr class="policy_detail_tr">
									<td colspan="2">${kind.kindName }</td>
									<td>￥${kind.premium }</td>
								</tr>
							</c:if>					
						</c:forEach>
					</c:if>
				</tbody>
			</table>
		</div>
		<div class="policy_detail_container">
			<h1><em></em>交强险</h1>
			<table>
				<tbody>
					<tr>
						<th>保险责任</th>
						<th>赔偿金额</th>
					</tr>
					<c:if test="${list != null }">
						<c:forEach items="${list}" var="kind">
							<c:if test="${kind.kindCode == 'BZ' || kind.kindCode == 'N' }">
								<tr>
									<td>${kind.kindName }</td>
									<td>￥${kind.premium }</td>
								</tr>
							</c:if>					
						</c:forEach>
					</c:if>
				</tbody>
			</table>
		</div>
		<div class="slide_content slide_content_h1 policy_detail_container">
			<h1 class="open_content"><em></em>特别约定<span></span></h1>
			<c:if test="${list !=null }">
				<c:forEach items="${policyInfo.engages }" var="engage">
					<p class="confirm_policy_content">${engage.clauses }</p>
				</c:forEach>
			</c:if>
		</div>
	</div>
	<!--保险责任内容结束-->
	<!--个人信息内容开始-->
	<div class="confirm_policy_container tab_content">
		<!--投保人信息开始-->
		<div class="slide_content">
			<h1 class="open_content"><em></em>投保人信息<span></span></h1>
			<div class="confirm_policy_content">
				<div class="confirm_policy_main">
					<ul>
						<c:if test="${policyInfo !=null }">
							<li class="clearfix">姓名<em class="fr">${policyInfo.insured.insuredName }</em></li>
							<li class="clearfix">手机号码<em class="fr">${policyInfo.insured.mobile }</em></li>
							<li class="clearfix">身份证号<em class="fr">${policyInfo.insured.identifyNumber }</em></li>
							<li class="clearfix">邮编<em class="fr">${policyInfo.insured.postCode }</em></li>
							<li class="clearfix">常住地址<em class="fr">${policyInfo.insured.insuredAddress }</em></li>
						</c:if>
						<c:if test="${policyInfo ==null }">
							<li class="clearfix">姓名<em class="fr"></em></li>
							<li class="clearfix">手机号码<em class="fr"></em></li>
							<li class="clearfix">身份证号<em class="fr"></em></li>
							<li class="clearfix">邮编<em class="fr"></em></li>
							<li class="clearfix">常住地址<em class="fr"></em></li>
						</c:if>
					</ul>
				</div>
			</div>
		</div>
		<!--投保人信息结束-->
		<!--签收人信息开始-->
		<div class="slide_content">
			<h1 class="open_content"><em></em>签收人信息<span></span></h1>
			<div class="confirm_policy_content">
				<div class="confirm_policy_main">
					<ul>
						<c:if test="${policyInfo != null }">
							<li class="clearfix">姓名<em class="fr">${policyInfo.applicant.appliName }</em></li>
							<li class="clearfix">电话号码<em class="fr">${policyInfo.applicant.mobile }</em></li>
							<%-- <li class="clearfix">常住地址<em class="fr">${policyHolderInfo.applicant. }</em></li> --%>
						</c:if>
						<c:if test="${policyInfo == null }">
							<li class="clearfix">姓名<em class="fr"></em></li>
							<li class="clearfix">电话号码<em class="fr"></em></li>
							<li class="clearfix">常住地址<em class="fr"></em></li>
						</c:if>
					</ul>
				</div>
			</div>
		</div>
		<!--签收人信息结束-->
		<!--车辆信息开始-->
		<div class="slide_content">
			<h1 class="open_content"><em></em>车辆信息<span></span></h1>
			<div class="confirm_policy_content">
				<div class="confirm_policy_main">
					<ul>
						<c:if test="${policyInfo != null }">
							<li class="clearfix">车主姓名<em class="fr">${policyInfo.car.carOwner }</em></li>
							<li class="clearfix">车辆品牌<em class="fr">${policyInfo.car.carKindCode }</em></li>
							<li class="clearfix">车辆型号<em class="fr">${policyInfo.car.brandName }</em></li>
							<li class="clearfix">车牌号码<em class="fr">${policyInfo.car.licenseNo }</em></li>
							<li class="clearfix">发动机号<em class="fr">${policyInfo.car.engineNo }</em></li>
							<li class="clearfix">车辆初登日期<em class="fr">${policyInfo.car.enrollDate }</em></li>
						</c:if>
						<c:if test="${policyInfo == null }">
							<li class="clearfix">车主姓名<em class="fr"></em></li>
							<li class="clearfix">车辆品牌<em class="fr"></em></li>
							<li class="clearfix">车辆型号<em class="fr"></em></li>
							<li class="clearfix">车牌号码<em class="fr"></em></li>
							<li class="clearfix">发动机号<em class="fr"></em></li>
							<li class="clearfix">车辆初登日期<em class="fr"></em></li>
						</c:if>
						
					</ul>
				</div>
			</div>
		</div>
	</div>
	<!--个人信息内容结束-->
</body>
</html>
